<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@page language="java" import="com.xypw.models.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<c:import url="topShow.jsp" />

<body>
	<div align="center" style="margin-top: 20px">
		<table width="800" height="auto" border="1" align="center"
			bordercolor="#E8E7E6" bgcolor="#FFFFFF">
			<tr align="center" valign="middle" height="25px">
				<th colspan="4" bgcolor="#BECAE3">${areaName} 各部门发布总数 ${proSum} 条</th>
			</tr>
			<c:forEach items="${allDepts}" var="provDept" varStatus="status">
				<c:if test="${(status.count%4)==1}">
					<tr align="center" valign="middle">
				</c:if>
				<td width="25%" style="padding: 3px">
				${provDept.departmentName}<br />
				<span>(${provDept.pid} 条)</span></td>
				<c:if test="${status.last}">
					<c:if test="${(status.count%4)!=0}">
						<c:forEach begin="1" end="${4-(status.count%4)}" var="i">
							<td>&nbsp;</td>
						</c:forEach>
					</c:if>
				</c:if>
				<c:if test="${(status.count%4)==0}">
					</tr>
				</c:if>
			</c:forEach>
		</table>
	</div>
</body>
</html>
